import classNames from 'classnames'
import { CSSProperties } from 'react'
import { ThemeProps } from '../Icon'

export const DISPLAY_NAME_PROGRESS = 'Progress'

export interface ProgressProps {
  percent: number
  strokeHeight?: number
  showText?: boolean
  styles?: CSSProperties
  theme?: ThemeProps
}

// 获取组件配置的class
export const getProgressClassNames = (
  props: ProgressProps,
  extendClass?: () => Object
) => {
  return classNames('progress-bar', extendClass && extendClass())
}
